<template>
  <!-- 底部左边 -->
  <div>
    <el-card>
      <div class="search-header">
        <h5>线上热门搜索</h5>
        <!-- 下拉菜单 -->
        <el-dropdown>
          <span class="el-dropdown-link">
             <span><i class="el-icon-more"></i></span>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item >双皮奶</el-dropdown-item>
            <el-dropdown-item >蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
      <!-- 折线图 -->
      <div>
        <el-row :gutter="10">
          <el-col :span="12">
            <LineChart/>
          </el-col>
          <el-col :span="12">
            <LineChart/>
          </el-col>
        </el-row>
      </div>
      <!-- 表格 -->
      <div>
        <el-table :data="tableData" style="width: 100%" border >
          <el-table-column type="index" prop="date" label="排名" sortable width="80">
          </el-table-column>
          <el-table-column prop="name" label="搜索关键词"  width="180">
          </el-table-column>
          <el-table-column prop="address" label="用户数" sortable>
          </el-table-column>
          <el-table-column prop="address" label="周涨幅" sortable>
          </el-table-column>
        </el-table>
      </div>
      <!-- 分页器 -->
      <div>
        <el-pagination style="text-align: right;"
          small
          layout="prev, pager, next"
          :total="50">
        </el-pagination>
      </div>
    </el-card>
  </div>
</template>

<script>
  import LineChart from './linechart/index.vue'
  export default {
    data() {
      return {
        tableData: [{}]
      }
    },
    components:{
      LineChart
      }
    }
</script>

<style scoped>
  h5{
    margin: 0;
  }
  .search-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
        margin-bottom: 20px;
        padding-bottom: 10px;
  }
</style>
